package cn.com.basic.framework.datasource.annotations;

import cn.com.basic.framework.datasource.enums.DataSourceType;

import java.lang.annotation.*;

// 定义数据源切换注解
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface DynamicDataSourceSwitch {
    DataSourceType value() default DataSourceType.MASTER;
}
